package com.myjob.src.jobseeker.domain;

import java.util.List;

import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface CvInfoRepository extends PagingAndSortingRepository<CvInfoBo, String> {
	public List<CvInfoBo> findByCvNameLike(String cvName);
	
	@Query(value="{'cvName':{$regex:?0, $options:'i'},'isDel':{$ne:'1'},'verified':{$in:?1}}", fields="{'cvName':1,'verified':1}")
	public List<CvInfoBo> findByCvNameAndVerified(String cvName, String[] verified);
}